package router

import (
	"examination-management/api/cmd/config"
	"examination-management/api/handler/api"
	"github.com/gin-gonic/gin"
	jwt2 "github.com/golangblogs/gojwt"
)

func StudentModel(r *gin.RouterGroup) {
	studentModel := r.Group("student")
	{
		studentModel.POST("/createStudent", api.CreateStudent)
		studentModel.POST("/loginStudent", api.LoginStudent)
		studentModel.Use(jwt2.JWTAuth(config.JWT_SELECT_KEY))
		studentModel.POST("/updateStudent", api.UpdateStudent)
	}
}
